package com.gdou.crrp.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "tb_doctor")
public class Doctor {

    @Id
    private int rid;//医生的唯一id

    private int did;//医生所在部门的id

    private String name;//医生的姓名

    @Column(name = "introduction", length = 500)
    private String introduction;//医生简介

    @Column(name = "workyear")
    private int workYear;//医生的工作年限

    private String phone;//医生的联系电话

    @Column(name = "work", length = 14)
    private String work;//可预约时间，两个字符代表一天的上下午，例如：yynnnnnnnnnnyy表示星期一和星期天可预约，其他时间不能进行预约


    /***
     * 增加工作范围字段：描述医生的工作职责
     */
    private String workDuty;


    /***
     * 添加一个好评率字段
     */
    private String goodRate;

    public String getWorkDuty() {
        return workDuty;
    }

    public void setWorkDuty(String workDuty) {
        this.workDuty = workDuty;
    }

    public String getGoodRate() {
        return goodRate;
    }

    public void setGoodRate(String goodRate) {
        this.goodRate = goodRate;
    }

    public int getRid() {
        return rid;
    }

    public void setRid(int rid) {
        this.rid = rid;
    }

    public int getDid() {
        return did;
    }

    public void setDid(int did) {
        this.did = did;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getWorkYear() {
        return workYear;
    }

    public void setWorkYear(int workYear) {
        this.workYear = workYear;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getWork() {
        return work;
    }

    public void setWork(String work) {
        this.work = work;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    @Override
    public String toString() {
        return "Doctor{" +
                "rid=" + rid +
                ", did=" + did +
                ", name='" + name + '\'' +
                ", introduction='" + introduction + '\'' +
                ", workYear=" + workYear +
                ", phone='" + phone + '\'' +
                ", work='" + work + '\'' +
                ", workDuty='" + workDuty + '\'' +
                ", goodRate='" + goodRate + '\'' +
                '}';
    }
}
